package com.example.security.mapper;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

@Component
public class PasswordMapper implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence){
        return charSequence.toString();
    }
    @Override
    public boolean matches(CharSequence charSequence, String s){
        return s.equals(charSequence.toString());
    }
}
